import request from "../index"


//请求前缀
let api_name="/user";

/**
 * 登陆
 * @param {Object} params
 */
export function login(params){
	console.log(params);
	return request({
		url:"/user/login",
		method:"GET",
		params
	});
}

export function TestLogin(data){
	return request({
		url:"/api/login",
		method:"POST",
		data
	});
	
}

export function getUserInfo(data){
	return request({
		url:"/api/user",
		method:"GET",
		data
	});
}